package edu.friday_2025_04_27.controller;
import edu.friday_2025_04_27.model.SysRole;
import edu.friday_2025_04_27.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/system/role")
public class SysRoleController {
    @Autowired
    SysRoleService roleService;
    @GetMapping("/list")
    public List<SysRole> list() {
        return roleService.selectRoleList();
    }
}
